﻿@model EM.OA.Portal.Models.MeetingRoomApplyModels
@{
    Layout = "~/Views/Shared/_LayoutContent.cshtml";
}
<script type="text/javascript" src="~/Scripts/page/Meeting/MeetingRoomApply.js"></script>

<div>
    <span>会议室名称：</span>
    <input class="easyui-combobox" id="comb_MeetingRoom" name="comb_MeetingRoom" data-options="url:'/MeetingRoom/GetEntityList',
        valueField:'id',textField:'text',onSelect: function(rec){ creatApplyList(rec.id);}">  
    <input type="button" value="预约" onclick="apply()" /><br />

    <div style="height: 32px; line-height: 32px; padding-left: 15px; color: green">
        <span style="color: green">图例：</span>
        <img src="../Images/xinghsb.gif" width="19" height="18" />&nbsp;未预约&nbsp;&nbsp;
        <img src="../images/xingcsb.gif" width="19" height="18" />&nbsp;待批准&nbsp;&nbsp;
        <img src="../images/xinglsb.gif" width="19" height="18" />&nbsp;已批准
    </div>

    @*日期时间列表*@
    <span id="content"></span>
    @*会议室预定*@
    <div id="dlg" class="easyui-dialog" style="width: 580px; height: 420px; padding: 10px 20px"
        closed="true" buttons="#dlgapply-buttons" modal="true" resizable="true">
        <form id="fm" method="post">
            @Html.HiddenFor(m => m.MeetingRoomApplyID)
            <table>
                <tr>
                    <td>会议室</td>
                    <td>
                        <input type="hidden" name="MeetingRoomID" id="MeetingRoomID" />
                        <input class="easyui-validatebox" type="text" id="MeetingRoomName" name="MeetingRoomName" />
                    </td>
                    
                </tr>
                <tr>
                    <td >@Html.LabelFor(m => m.MeetingPersonals)</td>
                    <td>@Html.TextBoxFor(m => m.MeetingPersonals, new { @class = "easyui-validatebox" })</td>
                </tr>
                <tr>
                    <td>@Html.LabelFor(m => m.MeetingDate)</td>
                    <td>
                        <input class="easyui-datebox" id="MeetingDate" name="MeetingDate"/>
                    </td>
                </tr>
                <tr>
                    <td>@Html.LabelFor(m => m.StartTime)</td>
                    <td>
                        <input type="hidden" id="StartTime2" name="StartTime2" />
                        <input id="StartTime22" class="easyui-timespinner" data-options="min:'09:00',max:'17:00',required:true,showSeconds:false"  style="width:150px">  
                        </td>
                </tr>
                <tr>
                    
                    <td>@Html.LabelFor(m => m.EndTime)</td>
                    <td>
                        <input type="hidden" id="EndTime2" name="EndTime2"/>
                        <input id="EndTime22"  class="easyui-timespinner" data-options="min:'09:00',max:'17:00',required:true,showSeconds:false" style="width:150px">  
                    </td>
                </tr>
                <tr>
                    <td>@Html.LabelFor(m => m.MeetingContent)</td>
                    <td colspan="3">@Html.TextAreaFor(m => m.MeetingContent, new { @style = "width:100%", @cols = "50", @rows = "10", @class = "easyui-validatebox", @required = "true" })</td>
                </tr>
            </table>

        </form>

        <div id="dlgapply-buttons">
            <a href="#" class="easyui-linkbutton" iconcls="icon-ok" onclick="save()">保存</a>
            <a href="#" class="easyui-linkbutton" iconcls="icon-cancel" onclick="javascript:$('#dlg').dialog('close')">取消</a>
        </div>
    </div>

</div>

